package com.boxfishedu.foreignkey.entity.jpa;

import com.boxfishedu.foreignkey.entity.Teacher;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by lzx on 16/3/9.
 */
public interface TeacherJpaRepository extends JpaRepository<Teacher,Long> {

    List<Teacher> findByUsernameContains(String key);
}
